package com.group.controller;

import com.group.entity.CommonResult;
import com.group.service.SupplierService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RequestMapping("/supplier")
@RestController
public class SupplierController {
    @Resource
    private SupplierService supplierService;
    @GetMapping("/findAll")

    public CommonResult<?> findAll(){

        return CommonResult.success(this.supplierService.findAll(),"请求成功");
    }
}
